package com.chixing.day_07_prototype.product;

public class ProductTest {
    public static void main(String[] args) throws CloneNotSupportedException {
        Product product = new Product();
        product.setProId(101);
        product.setProName("今麦郎矿泉水");
        product.setProPrice(1.9f);
        //实现克隆
        Product clonePro = product.clone();
        System.out.println(product);
        System.out.println(clonePro);
    }
}
